From 82cd1fd00ef30c51c981a5d0a7735063370054a5 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 8 May 2007 10:17:46 +0100 Subject: [PATCH] [Xen-API] Fix the rtc/timeoffset entry. It cannot be 'None' as this is not parseable by the Java xmlrpc library. Signed-off-by: Stefan Berger --- tools/python/xen/xend/XendDomainInfo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index f1c602a2d7..5c16baf6e7 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -867,7 +867,10 @@ class XendDomainInfo: # convert two lists into a python dictionary vm_details = dict(zip(cfg_vm, vm_details)) - + + if vm_details['rtc/timeoffset'] == None: + vm_details['rtc/timeoffset'] = "0" + for arg, val in vm_details.items(): if arg in XendConfig.LEGACY_CFG_TO_XENAPI_CFG: xapiarg = XendConfig.LEGACY_CFG_TO_XENAPI_CFG[arg] -- 2.30.2